<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="app">
    <todo-item :props-a="person"></todo-item>
</div>
<script>
    const vueOpt = {
        data(){
            return {
                person: new Person()
            }
        }
    }

    const app = Vue.createApp(vueOpt);

    function Person(name, age){
        this.name = name;
        this.age = age;
    }

    app.component('todo-item', {
        data(){
            return {

            }
        },
        props: {
            propsA: Person
        },
        template: `<div></div>`
    });
    app.mount('#app');
</script>
</body>
</html>
